package co.fitstart.weapp.api.service;
/**
 * @ClassName: CoachMessageService  
 * @author cuteHU  
 * @date 2018年12月3日
 */

import java.util.List;

import co.fitstart.entity.principal.Principal;
import co.fitstart.entity.principal.PrincipalMessage;

public interface CoachMessageService {
    /**
     * @Description: 查出教练端消息列表
     * @param principal
     * @param begin
     * @param length
     * @return  PrincipalMessage
     * 
     */
    public List<PrincipalMessage> list(Principal principal, int begin, int length);
    
    /**
     * @Description: 查出消息详情信息
     * @param       
     * @return  PrincipalMessage
     */
    public PrincipalMessage load(Long messageId);
    
    /**
     * @Description: 更新教练消息
     * @param       
     * @return  PrincipalMessage
     */
    public void update(Long messageId);
    
    /**
     * @Description: 验证消息是否阅读过
     * @param       
     * @return  PrincipalMessage
     */
    public boolean isRead(Long messageId,boolean read);

}
